{{define "querylist"}}
<h4>总数：{{ .total }}</h4><br/>
<table id="logo_table" cellpadding="0" cellspacing="0" border="0" class="stdtable">
	<thead class="center">
		<tr>
			<td width="3%">UID</td>
			<td width="5%">用户名</td>
			<td width="3%">电子邮箱</td>
			<td width="8%">头像</td>
			<td width="4%">居住地</td>
			<td width="4%">所在公司</td>
			<td width="10%">创建时间</td>
			<td width="8%">操作</td>
		</tr>
	</thead>
	<tbody class="center">
		{{range .datalist}}
			<tr>
				<td>{{ .Uid }}</td>
				<td>{{ .Username }}</td>
				<td>{{.Email}}</td>
				<td>{{.Avatar}}</td>
				<td>{{.City}}</td>
				<td>{{.Company}}</td>
				<td>{{ .Ctime }}</td>
				<td class="actions">
					<a href="/admin/user/user/detail?uid={{ .Uid }}" target="_blank">详情</a>
					<a data-type="ajax-submit" href="#"
						ajax-action="/admin/user/user/add_black?uid={{ .Uid }}"
						ajax-hint="是否确认要加黑？"
						success-hint="加黑成功"
						callback="delCallback">加黑</a>
					<a data-type="ajax-submit" href="#"
						ajax-action="/admin/user/user/add_black?uid={{ .Uid }}&truncate=1"
						ajax-hint="是否确认要加黑并删除用户发布的信息？"
						success-hint="处理成功"
						callback="delCallback">加黑删除</a>
				</td>
			</tr>
		{{end}}
	</tbody>
</table>

<div class="gigantic pagination">
	<a href="#" class="first" data-action="first">&laquo;</a>
	<a href="#" class="previous" data-action="previous">&lsaquo;</a>
	<input type="text" readonly="readonly" data-max-page="40" />
	<a href="#" class="next" data-action="next">&rsaquo;</a>
	<a href="#" class="last" data-action="last">&raquo;</a>
</div>

<input type="hidden" id="totalPages" value="{{ .totalPages }}"/>
<input type="hidden" id="cur_page" value="{{ .page }}"/>
<input type="hidden" id="limit" value="{{ .limit }}"/>

{{end}}
